#library('Colors');

/** A class representing all the possible balloon colors.
 * Unfortunately, Dart does not have enums (yet). 
 */
class Colors {

  // The list of colors.
  static List<String> getColors() {
     return ["red", "yellow", "green", "blue", "purple"];
  }
  
  // Get the corresponding image source for the given color.
  static String getSrc(String color) {
    switch (color) {
      case 'red':
        return "resources/red.png";
      case 'yellow':
        return "resources/yellow.png";
      case 'green':
        return "resources/green.png";
      case 'blue':
        return "resources/blue.png";
      case 'purple':
        return "resources/purple.png";
      default:
        return "resources/none.png";
    }
  }
}
